/**
 * Created by 小敏哥 on 2017/4/19.
 */
import React from 'react'
import {Route, IndexRoute} from 'react-router'

import {
    App,
    Home,
    NotFoundPage,
    ProcessDetail,//办理流程详情
    OverLineProcessDetail,//过线检办理流程
    AllProcessDetail,
    HandlingProgress, //办理进度
    ConfirmOrder,
    Coupon,
    CalculatorOfYearlyCheck,
    //YearlyCheckDetail,

    AddAddress, //添加地址
    AddressEdit, //编辑地址
    MailingAddress, //选择寄送年检资料的方式
    AddressList, //地址列表
    OrderDetails, //年检详情
    AnnualDataMailDoor, //年检资料及收件地址 提交完资料后 邮政提示页面
    SendTheAddress, //年检资料及收件地址 提交完资料后 自主寄送提示页面
    ProceDures,
    YearlyCheckDetail,
    AnnualInspection,//年检手续办理
    UpdateCarInfo,//更新车辆信息
    TaxConfirm, // 年检手续办理-险种确认
    TaxConfirmUpdata,// 年检手续办理-上传图片
    Questions,//常见问题
    CheckViolation, // 年检手续办理-违章确认
    APPjumpUrl,
    NewUrl,//打开新页面
    NewAppUrl,//打开新页面
    JumpUrl, //打开详情空页面做跳转
    SendTheAddressOfOverLine,//上线检，年检资料及收件地址
    RemindHome,//年检提醒首页
    RemindProcessDetail,//年检提醒详情页
    UploadPage,//拍照上传页
    UploadResult,//上传结果页
    testContainer,
    ProcessDetails,
    InspectionTips,
    ChargeInstructions,//服务费用说明
    ServiceDetail,
    OrderList,
    Error
} from './containers/devIndex'

import FooterAlertDemo from './components/Home/FooterAlertDemo' //测试demo 可删除
export default (
    <Route path="/" component={App}>
        <IndexRoute component={Home}/>
        <Route path="testContainer" components={testContainer}/>
        <Route path="chargeInstructions" components={ChargeInstructions}/>
        <Route path="serviceDetail/:inspectionType" components={ServiceDetail}/>
        <Route path="uploadResult/:documentId" components={UploadResult}/>
        <Route path="uploadPage/:taxId/:documentId(/:backSteps)" components={UploadPage}/>
        <Route path="remindHome(/:carNumber)(/:carId)" components={RemindHome}/>
        <Route path="/processDetailsView/:inspectionType" component={ProcessDetails}/>
        <Route path="/remindProcessDetail/:url(/:inspectionType)" component={RemindProcessDetail}/>
        <Route path="newUrl(/:key)" components={NewUrl}/>
        <Route path="newAppUrl(/:target)(/:carnumber)(/:carId)" components={NewAppUrl}/>
        <Route path="jumpUrl(/:orderId)" components={JumpUrl}/>
        <Route path="APPjumpUrl(/:orderId)" components={APPjumpUrl}/>
        <Route path="inspectionTips/:inspectionType" components={InspectionTips}/>

        <Route path="processDetail" components={ProcessDetail}/>
        <Route path="overLineProcessDetail" components={OverLineProcessDetail}/>
        <Route path="allProcessDetail" components={AllProcessDetail}/>

        <Route path="calculatorOfYearlyCheck(/:carNumber)(/:carId)" component={CalculatorOfYearlyCheck}/>
        <Route path="confirmOrder" component={ConfirmOrder}/>
        <Route path="confirmOrder/:carId/:carNumber(/:inspectionType)" component={ConfirmOrder}/>
        <Route path="yearlyCheckDetail(/:carNumber)(/:carId)(/:type)" component={YearlyCheckDetail}/>
        <Route path="questions" components={Questions}/>
        <Route path="updateCarInfo(/:carNumber)(/:carId)" components={UpdateCarInfo}/>
        <Route path="handlingProgress/:orderId/:title/:type" component={HandlingProgress}/>
        <Route path="coupon/(:couponId)" component={Coupon}/>
        <Route path="addAddress/:orderId/:type(/:addressId)" component={AddAddress}/>
        <Route path="addressEdit/:orderId/:type(/:addressId)" component={AddressEdit}/>
        <Route path="addressList/:orderId(/:type)" component={AddressList}/>
        <Route path="mailingAddress(/:orderId)(/:isClose)" component={MailingAddress}/>
        <Route path="proceDures(/:orderId)" component={ProceDures}/>
        <Route path="orderDetails(/:orderId)" component={OrderDetails}/>
        <Route path="sendTheAddress/:type/:btn/:orderId(/:isClose)" components={SendTheAddress}/>
        <Route path="sendTheAddress/overLine/:orderId" components={SendTheAddress}/>
        <Route path="annualInspection(/:orderId)(/:isClose)" component={AnnualInspection}/>
        <Route path="taxConfirm/:documentId/:key/:inspectionType/:mailType/:carnumber/:confirmType" component={TaxConfirm}/>
        <Route path="taxConfirmUpdata/:key(/:carnumber)" component={TaxConfirmUpdata}/>
        <Route path="orderList" component={OrderList}/>
        <Route path="FooterAlertDemo" component={FooterAlertDemo}/>
        <Route path="Error" component={Error}/>
        <Route path="*" component={NotFoundPage}/>
    </Route>
);